const state = {
    data: [],
    pageTotal: 0,
    query: {
        pageIndex: 1,
        pageSize: 10,
        type: null,
        name: null,
        auditBy: null,
        ids: null
        // id: null,
    }
};

const mutations = {
    SET_AUDIT_OVERVIEW_DATA: (state, data) => {
        state.data = data;
    },
    SET_AUDIT_OVERVIEW_PAGETOTAL: (state, pageTotal) => {
        state.pageTotal = pageTotal;
    },
    SET_AUDIT_OVERVIEW_QUERY: (state, query) => {
        state.query = query;
    }
};

// ajax异步请求要么放在组件发 要么 放在actions发
// 这里是放在组件发
const actions = {
    setAuditOverviewData({ commit }, data) {}
    // ...
};

export default {
    state,
    mutations,
    actions
};
